<?php

namespace App;

use Illuminate\Foundation\Auth\User as Authenticatable;
//下面的命名空间是手册中的模型动作
use Spatie\Permission\Traits\HasRoles;

class Admin extends Authenticatable
{
//    下面这条是laravel中的模型动作
    use HasRoles;
    protected $rememberTokenName = '';
    protected $guarded = [];
}
